package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.HomebannerMapper;
import com.ktgj.flight.domain.Homebanner;
import com.ktgj.flight.service.IHomebannerService;

/**
 * 首页动态标题Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class HomebannerServiceImpl implements IHomebannerService 
{
    @Autowired
    private HomebannerMapper homebannerMapper;

    /**
     * 查询首页动态标题
     * 
     * @param bannerId 首页动态标题ID
     * @return 首页动态标题
     */
    @Override
    public Homebanner selectHomebannerById(Long bannerId)
    {
        return homebannerMapper.selectHomebannerById(bannerId);
    }

    /**
     * 查询首页动态标题列表
     * 
     * @param homebanner 首页动态标题
     * @return 首页动态标题
     */
    @Override
    public List<Homebanner> selectHomebannerList(Homebanner homebanner)
    {
        return homebannerMapper.selectHomebannerList(homebanner);
    }

    /**
     * 新增首页动态标题
     * 
     * @param homebanner 首页动态标题
     * @return 结果
     */
    @Override
    public int insertHomebanner(Homebanner homebanner)
    {
        return homebannerMapper.insertHomebanner(homebanner);
    }

    /**
     * 修改首页动态标题
     * 
     * @param homebanner 首页动态标题
     * @return 结果
     */
    @Override
    public int updateHomebanner(Homebanner homebanner)
    {
        return homebannerMapper.updateHomebanner(homebanner);
    }

    /**
     * 批量删除首页动态标题
     * 
     * @param bannerIds 需要删除的首页动态标题ID
     * @return 结果
     */
    @Override
    public int deleteHomebannerByIds(Long[] bannerIds)
    {
        return homebannerMapper.deleteHomebannerByIds(bannerIds);
    }

    /**
     * 删除首页动态标题信息
     * 
     * @param bannerId 首页动态标题ID
     * @return 结果
     */
    @Override
    public int deleteHomebannerById(Long bannerId)
    {
        return homebannerMapper.deleteHomebannerById(bannerId);
    }
}
